package com.zj.demo.utils;

import java.util.Random;

public class GetString {

    public String getString() {
        // A-Z 65-90
        StringBuilder out = new StringBuilder();
        for (int i = 0; i < 10; i++) {
            int index = new Random().nextInt(26) + 65;
            char c = (char) index;
            out.append(c);
        }
        return out.toString();
    }
}
